package com.wish.finance.alipay;

import java.io.FileWriter;
import java.io.IOException;

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000118659366";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCbT9ur2fQCjqLJkcLT0htQuRDHIqtW3pR1NdcaOoA8HOj3sx/Jekp4RLodNnUSfEBEIgpqEv2BhZuZ8iBbjgR7BJ9s7OZah6M2wdQA3uoSmLehzsHD2mYmNbk5Q3Pfr28TUdrnuJbRlSSF7F9m1Zk56vAe30h7NGTzaHJ2j1U4hvPMbIR0ftVqE7HhnvIMtw2Y1aSphH6PUTnq9PHpIJV4qQqV8AiA/3jvtdZs0eovK0Ta9apoeLNKriT5B/WeZzTO/EO3HTG+zVdkxq3REl0KPHHGdIFVdlvjCsPcuuDNV09LYOBDkQRJdd1llfUZNryuTJR4ziuVxZk+IoRxTIjPAgMBAAECggEAb5uAeUsjbR8A3ibPwZXPqT+ETgWc6M0EFAJ/s8psUkZYJ3/iDM/Dag/BSrLSiFkfeZaYs0c4QvY3LfZvyDsS/zAAPK80jcPAxt2cso9916VE+JLybQKpuzWKCBtvzkNsZ46/5xqfzrYFS/PjTquZ86Pfr9+2X0r0bHIXJxmzHO3EoJnt5/ASxuN+h0g1gI4pDbNyaWCGhhLD8SSW2/39+Pz/wLvzvr/zO3w/pVoBblsRqP6z0o6YxDGW5A3U2gs67CF5Wn4CFEBDaOULOwDyw5psr9D7NXmwDXHwlciSNlR6Cljk849E1nwR38IDCBaQ1gTnZtK7H0r64n+5YX/DgQKBgQDinSukmLFu9eIUIsurGlkx8ao/j9N7/iXLIQpamL52IGSj3BriNU4cyuor+rrm1NUVazoBCuDBoys1tFqDffk3GPGX7AWGiA96QUk7uNWqA2a66u4L9PXaoEAu0B4aE0Ek4yRnjIXv+BJU55VXFkY6Dn/DjgmpjEK9ypo78ogOjwKBgQCvc7LAjIrxg2V19jvq+VOJmwBdRhNEuod9AmREOAgYNSmuIHqUrVUrIy8XeV7Pg9H0E7J7Qe8NHgQP5sUQoWZFunQTDsyQfAe7qJbNmHj73RvCOlrc8tiAqCRrfQ0wZ72zelDsxzgV92CmdfgJA9w+9LhJwyUrA9SGJ7zFqiUBwQKBgQC/VYDR2nKFg2m9Ipvf/cEtoCPkwuUHHdB/L4h0cd7uEe+nQmIYeHVZbiJFu88usqivCvfQhYS7Oa90CrEZsLVIxfDGGuuXaS3YRWM135vXjkOgslcHFW63hvJqFCI2Ved846OLImS79jJUKaw3+YCV6EQLstOJqfl4EaYj02T5FQKBgQCBacGrrP6/bb/k5p8DjqxDj4URR6Lmyv8tAhqbBwlRccUwntxL1h5AF0+g7PE193FhqzW3HMcK0d0FLZ6lyab6P7FmbUAOQq4hiRTSyWhTvp++//QNjUKMg3l5n1+fGKYgQFR4kemYqkMsBU/Stno6JZ/ZKIu90rFr0tu2oO1zAQKBgQCyfW4bsV4fc6oCJd9fEBDl8RSvr6NJMHhlrsi1GsPN3OebVD9LdGSOnvxUEx05EtVYf3leAeRk5nSaJGJtKUXdlIdTbbt9QGlirHBc2GXnh4jj+p5VQdraZMd2BHcPr1W9XYk4XgeyZYR/scY/UesRytjO0g4n0X5MQ1nS1F+vdQ==";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1QiPYPlx4ZAz0AU2IUoHaYx/2UwJ6H3q5Kuv7Pa+yd3/d3PvyW46Gw8hWzpaNZgdPdcGQrD93aXasAnfb3uLUu4UdAFPul1E3cLJZ/XMpbyEVvNMK8IuYAsdWiAtTvolLYaEeD3zCvRWfsoYvGdOTyADHamktADjo1D4P3FduxRN00VNk6Ex+eletBhW6Xtob2ZEJV5kAsieou1suKoHEJAbFbBJ8RtowkwMFwi8JErUPsHTOAL5ISjlpgglOxCg6YMttXB+2BtNlyaiUNGXSyt9q+oiE+tHH/yaILZZkVOwo2/aimk4mttHWOENmjlu75cOK0qpdfK4buQ59lllwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://bwwish.free.idcfengye.com/notify";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost/finance/payment";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
    public static String log_path = "D:\\";


//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     * @param sWord 要写入日志里的文本内容
     */
    /*public static void logResult(String sWord) {
        FileWriter writer = null;
        try {
            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis() + ".txt");
            writer.write(sWord);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (writer != null) {
                try {
                    writer.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }*/
}
